Optimal. Leaf size=22 \[ -\frac {\tanh ^{-1}(\cos (x))}{2 a}-\frac {\cot (x) \csc (x)}{2 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {3175, 3768, 3770} \[ -\frac {\tanh ^{-1}(\cos (x))}{2 a}-\frac {\cot (x) \csc (x)}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3175
Rule 3768
Rule 3770
Rubi steps
\begin {align*} \int \frac {\csc (x)}{a-a \cos ^2(x)} \, dx &=\frac {\int \csc ^3(x) \, dx}{a}\\ &=-\frac {\cot (x) \csc (x)}{2 a}+\frac {\int \csc (x) \, dx}{2 a}\\ &=-\frac {\tanh ^{-1}(\cos (x))}{2 a}-\frac {\cot (x) \csc (x)}{2 a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.01, size = 51, normalized size = 2.32 \[ \frac {-\frac {1}{8} \csc ^2\left (\frac {x}{2}\right )+\frac {1}{8} \sec ^2\left (\frac {x}{2}\right )+\frac {1}{2} \log \left (\sin \left (\frac {x}{2}\right )\right )-\frac {1}{2} \log \left (\cos \left (\frac {x}{2}\right )\right )}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.45, size = 48, normalized size = 2.18 \[ -\frac {{\left (\cos \relax (x)^{2} - 1\right )} \log \left (\frac {1}{2} \, \cos \relax (x) + \frac {1}{2}\right ) - {\left (\cos \relax (x)^{2} - 1\right )} \log \left (-\frac {1}{2} \, \cos \relax (x) + \frac {1}{2}\right ) - 2 \, \cos \relax (x)}{4 \, {\left (a \cos \relax (x)^{2} - a\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.15, size = 38, normalized size = 1.73 \[ -\frac {\log \left (\cos \relax (x) + 1\right )}{4 \, a} + \frac {\log \left (-\cos \relax (x) + 1\right )}{4 \, a} + \frac {\cos \relax (x)}{2 \, {\left (\cos \relax (x)^{2} - 1\right )} a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.10, size = 44, normalized size = 2.00 \[ \frac {1}{4 a \left (-1+\cos \relax (x )\right )}+\frac {\ln \left (-1+\cos \relax (x )\right )}{4 a}+\frac {1}{4 a \left (\cos \relax (x )+1\right )}-\frac {\ln \left (\cos \relax (x )+1\right )}{4 a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.48, size = 37, normalized size = 1.68 \[ \frac {\cos \relax (x)}{2 \, {\left (a \cos \relax (x)^{2} - a\right )}} - \frac {\log \left (\cos \relax (x) + 1\right )}{4 \, a} + \frac {\log \left (\cos \relax (x) - 1\right )}{4 \, a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.08, size = 26, normalized size = 1.18 \[ -\frac {\cos \relax (x)}{2\,\left (a-a\,{\cos \relax (x)}^2\right )}-\frac {\mathrm {atanh}\left (\cos \relax (x)\right )}{2\,a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ - \frac {\int \frac {\csc {\relax (x )}}{\cos ^{2}{\relax (x )} - 1}\, dx}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________